﻿import QtQuick 2.15
import QtQuick.Controls 2.15

Item {
    width: screenWidth
    height: screenHeight

    Item{
        id:backGround
        anchors.fill: parent
    }

    Rectangle{
        anchors.fill: backGround
        color: "#09295c"
    }

    Rectangle{
        anchors.top: backGround.top
        anchors.topMargin: 210
        anchors.left: backGround.left
        anchors.leftMargin: 10
        color: "#0b49b0"
        border.width: 1
        border.color: "#008edd"
        width: 1060
        height: 1400

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 100
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"刀盘上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 100
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 刀盘上行补偿
                id:knifeUpCpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.knife_UpCpst
            }

            TextInput{
                id:knifeUpCpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:knifeUpCpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     knifeUpCpst.text = knifeUpCpst_Input.text
                //     knifeUpCpst_Input.visible = false
                //     knifeUpCpst.visible = true
                // }
                onAccepted: {
                    knifeUpCpst_Input.visible = false
                    knifeUpCpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3244",knifeUpCpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    knifeUpCpst.visible = false
                    knifeUpCpst_Input.visible = true
                    knifeUpCpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 100
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"刀盘下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 100
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 刀盘下行补偿
                id:knifeDownCpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.knife_DownCpst
            }

            TextInput{
                id:knifeDownCpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:knifeDownCpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     knifeDownCpst.text = knifeDownCpst_Input.text
                //     knifeDownCpst_Input.visible = false
                //     knifeDownCpst.visible = true
                // }
                onAccepted: {
                    knifeDownCpst_Input.visible = false
                    knifeDownCpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3248",knifeDownCpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    knifeDownCpst.visible = false
                    knifeDownCpst_Input.visible = true
                    knifeDownCpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 220
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"胶辊上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 220
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 胶辊上行补偿
                id:rollerUpCpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.roller_UpCpst
            }

            TextInput{
                id:rollerUpCpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:rollerUpCpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     rollerUpCpst.text = rollerUpCpst_Input.text
                //     rollerUpCpst_Input.visible = false
                //     rollerUpCpst.visible = true
                // }
                onAccepted: {
                    rollerUpCpst_Input.visible = false
                    rollerUpCpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3252",rollerUpCpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    rollerUpCpst.visible = false
                    rollerUpCpst_Input.visible = true
                    rollerUpCpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 220
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"胶辊下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 220
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 胶辊下行补偿
                id:rollerDownCpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.roller_DownCpst
            }

            TextInput{
                id:rollerDownCpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:rollerDownCpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     rollerDownCpst.text = rollerDownCpst_Input.text
                //     rollerDownCpst_Input.visible = false
                //     rollerDownCpst.visible = true
                // }
                onAccepted: {
                    rollerDownCpst_Input.visible = false
                    rollerDownCpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3256",rollerDownCpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    rollerDownCpst.visible = false
                    rollerDownCpst_Input.visible = true
                    rollerDownCpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 340
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力1前进补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 340
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力1前进补偿
                id:stress01_F_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress01_F_Cpst
            }

            TextInput{
                id:stress01_F_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress01_F_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress01_F_Cpst.text = stress01_F_Cpst_Input.text
                //     stress01_F_Cpst_Input.visible = false
                //     stress01_F_Cpst.visible = true
                // }
                onAccepted: {
                    stress01_F_Cpst_Input.visible = false
                    stress01_F_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3260",stress01_F_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress01_F_Cpst.visible = false
                    stress01_F_Cpst_Input.visible = true
                    stress01_F_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 340
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力1后退补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 340
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力1后退补偿
                id:stress01_B_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress01_B_Cpst
            }

            TextInput{
                id:stress01_B_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress01_B_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress01_B_Cpst.text = stress01_B_Cpst_Input.text
                //     stress01_B_Cpst_Input.visible = false
                //     stress01_B_Cpst.visible = true
                // }
                onAccepted: {
                    stress01_B_Cpst_Input.visible = false
                    stress01_B_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3264",stress01_B_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress01_B_Cpst.visible = false
                    stress01_B_Cpst_Input.visible = true
                    stress01_B_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 460
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力2前进补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 460
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力2前进补偿
                id:stress02_F_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress02_F_Cpst
            }

            TextInput{
                id:stress02_F_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress02_F_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress02_F_Cpst.text = stress02_F_Cpst_Input.text
                //     stress02_F_Cpst_Input.visible = false
                //     stress02_F_Cpst.visible = true
                // }
                onAccepted: {
                    stress02_F_Cpst_Input.visible = false
                    stress02_F_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3268",stress02_F_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress02_F_Cpst.visible = false
                    stress02_F_Cpst_Input.visible = true
                    stress02_F_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 460
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力2后退补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 460
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力2后退补偿
                id:stress02_B_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress02_B_Cpst
            }

            TextInput{
                id:stress02_B_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress02_B_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress02_B_Cpst.text = stress02_B_Cpst_Input.text
                //     stress02_B_Cpst_Input.visible = false
                //     stress02_B_Cpst.visible = true
                // }
                onAccepted: {
                    stress02_B_Cpst_Input.visible = false
                    stress02_B_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3272",stress02_B_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress02_B_Cpst.visible = false
                    stress02_B_Cpst_Input.visible = true
                    stress02_B_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 580
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力3前进补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 580
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力3前进补偿
                id:stress03_F_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress03_F_Cpst
            }

            TextInput{
                id:stress03_F_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress03_F_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress03_F_Cpst.text = stress03_F_Cpst_Input.text
                //     stress03_F_Cpst_Input.visible = false
                //     stress03_F_Cpst.visible = true
                // }
                onAccepted: {
                    stress03_F_Cpst_Input.visible = false
                    stress03_F_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3276",stress03_F_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress03_F_Cpst.visible = false
                    stress03_F_Cpst_Input.visible = true
                    stress03_F_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 580
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"压力3后退补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 580
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 压力3后退补偿
                id:stress03_B_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.stress03_B_Cpst
            }

            TextInput{
                id:stress03_B_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:stress03_B_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     stress03_B_Cpst.text = stress03_B_Cpst_Input.text
                //     stress03_B_Cpst_Input.visible = false
                //     stress03_B_Cpst.visible = true
                // }
                onAccepted: {
                    stress03_B_Cpst_Input.visible = false
                    stress03_B_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3280",stress03_B_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    stress03_B_Cpst.visible = false
                    stress03_B_Cpst_Input.visible = true
                    stress03_B_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 700
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀1上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 700
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀1上行补偿
                id:f_Knife01_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife01_UpCpst
            }

            TextInput{
                id:f_Knife01_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife01_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife01_Up_Cpst.text = f_Knife01_Up_Cpst_Input.text
                //     f_Knife01_Up_Cpst_Input.visible = false
                //     f_Knife01_Up_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife01_Up_Cpst_Input.visible = false
                    f_Knife01_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3284",f_Knife01_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife01_Up_Cpst.visible = false
                    f_Knife01_Up_Cpst_Input.visible = true
                    f_Knife01_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 700
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀1下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 700
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀1下行补偿
                id:f_Knife01_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife01_DownCpst
            }

            TextInput{
                id:f_Knife01_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife01_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife01_Down_Cpst.text = f_Knife01_Down_Cpst_Input.text
                //     f_Knife01_Down_Cpst_Input.visible = false
                //     f_Knife01_Down_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife01_Down_Cpst_Input.visible = false
                    f_Knife01_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3288",f_Knife01_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife01_Down_Cpst.visible = false
                    f_Knife01_Down_Cpst_Input.visible = true
                    f_Knife01_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 820
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀2上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 820
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀2上行补偿
                id:f_Knife02_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife02_UpCpst
            }

            TextInput{
                id:f_Knife02_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife02_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife02_Up_Cpst.text = f_Knife02_Up_Cpst_Input.text
                //     f_Knife02_Up_Cpst_Input.visible = false
                //     f_Knife02_Up_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife02_Up_Cpst_Input.visible = false
                    f_Knife02_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3292",f_Knife02_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife02_Up_Cpst.visible = false
                    f_Knife02_Up_Cpst_Input.visible = true
                    f_Knife02_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 820
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀2下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 820
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀2下行补偿
                id:f_Knife02_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife02_DownCpst
            }

            TextInput{
                id:f_Knife02_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife02_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife02_Down_Cpst.text = f_Knife02_Down_Cpst_Input.text
                //     f_Knife02_Down_Cpst_Input.visible = false
                //     f_Knife02_Down_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife02_Down_Cpst_Input.visible = false
                    f_Knife02_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3296",f_Knife02_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife02_Down_Cpst.visible = false
                    f_Knife02_Down_Cpst_Input.visible = true
                    f_Knife02_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 940
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀3上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 940
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀3上行补偿
                id:f_Knife03_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife03_UpCpst
            }

            TextInput{
                id:f_Knife03_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife03_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife03_Up_Cpst.text = f_Knife03_Up_Cpst_Input.text
                //     f_Knife03_Up_Cpst_Input.visible = false
                //     f_Knife03_Up_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife03_Up_Cpst_Input.visible = false
                    f_Knife03_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3300",f_Knife03_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife03_Up_Cpst.visible = false
                    f_Knife03_Up_Cpst_Input.visible = true
                    f_Knife03_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 940
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"前刀3下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 940
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 前刀3下行补偿
                id:f_Knife03_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.f_knife03_DownCpst
            }

            TextInput{
                id:f_Knife03_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:f_Knife03_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     f_Knife03_Down_Cpst.text = f_Knife03_Down_Cpst_Input.text
                //     f_Knife03_Down_Cpst_Input.visible = false
                //     f_Knife03_Down_Cpst.visible = true
                // }
                onAccepted: {
                    f_Knife03_Down_Cpst_Input.visible = false
                    f_Knife03_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3304",f_Knife03_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    f_Knife03_Down_Cpst.visible = false
                    f_Knife03_Down_Cpst_Input.visible = true
                    f_Knife03_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1060
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀1上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1060
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀1上行补偿
                id:b_Knife01_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife01_UpCpst
            }

            TextInput{
                id:b_Knife01_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife01_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife01_Up_Cpst.text = b_Knife01_Up_Cpst_Input.text
                //     b_Knife01_Up_Cpst_Input.visible = false
                //     b_Knife01_Up_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife01_Up_Cpst_Input.visible = false
                    b_Knife01_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3308",b_Knife01_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife01_Up_Cpst.visible = false
                    b_Knife01_Up_Cpst_Input.visible = true
                    b_Knife01_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1060
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀1下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1060
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀1下行补偿
                id:b_Knife01_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife01_DownCpst
            }

            TextInput{
                id:b_Knife01_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife01_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife01_Down_Cpst.text = b_Knife01_Down_Cpst_Input.text
                //     b_Knife01_Down_Cpst_Input.visible = false
                //     b_Knife01_Down_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife01_Down_Cpst_Input.visible = false
                    b_Knife01_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3312",b_Knife01_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife01_Down_Cpst.visible = false
                    b_Knife01_Down_Cpst_Input.visible = true
                    b_Knife01_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }


        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1180
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀2上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1180
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀2上行补偿
                id:b_Knife02_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife02_UpCpst
            }

            TextInput{
                id:b_Knife02_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife02_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife02_Up_Cpst.text = b_Knife02_Up_Cpst_Input.text
                //     b_Knife02_Up_Cpst_Input.visible = false
                //     b_Knife02_Up_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife02_Up_Cpst_Input.visible = false
                    b_Knife02_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3316",b_Knife02_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife02_Up_Cpst.visible = false
                    b_Knife02_Up_Cpst_Input.visible = true
                    b_Knife02_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1180
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀2下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1180
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀2下行补偿
                id:b_Knife02_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife02_DownCpst
            }

            TextInput{
                id:b_Knife02_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife02_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife02_Down_Cpst.text = b_Knife02_Down_Cpst_Input.text
                //     b_Knife02_Down_Cpst_Input.visible = false
                //     b_Knife02_Down_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife02_Down_Cpst_Input.visible = false
                    b_Knife02_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3320",b_Knife02_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife02_Down_Cpst.visible = false
                    b_Knife02_Down_Cpst_Input.visible = true
                    b_Knife02_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1300
            anchors.left: parent.left
            anchors.leftMargin: 50
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀3上行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1300
            anchors.left: parent.left
            anchors.leftMargin: 300
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀3上行补偿
                id:b_Knife03_Up_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife03_UpCpst
            }

            TextInput{
                id:b_Knife03_Up_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife03_Up_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife03_Up_Cpst.text = b_Knife03_Up_Cpst_Input.text
                //     b_Knife03_Up_Cpst_Input.visible = false
                //     b_Knife03_Up_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife03_Up_Cpst_Input.visible = false
                    b_Knife03_Up_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3324",b_Knife03_Up_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife03_Up_Cpst.visible = false
                    b_Knife03_Up_Cpst_Input.visible = true
                    b_Knife03_Up_Cpst_Input.forceActiveFocus()
                }
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1300
            anchors.left: parent.left
            anchors.leftMargin: 560
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text:"后刀3下行补偿"
            }
        }

        Rectangle{
            width: 200
            height: 80
            anchors.top: parent.top
            anchors.topMargin: 1300
            anchors.left: parent.left
            anchors.leftMargin: 820
            color: "#00adfb"
            radius: 10
            border.width: 1
            border.color: "#008edd"

            Text{           // 后刀3下行补偿
                id:b_Knife03_Down_Cpst
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                color: "white"
                text: Cpp_Connect.b_knife03_DownCpst
            }

            TextInput{
                id:b_Knife03_Down_Cpst_Input
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                visible: false
                color: "white"
                selectByMouse: true
                maximumLength: 8
                //@disabel-check M16
                // verticalAlignment: Text.verticalAlignment
                horizontalAlignment: Text.horizontalAlignment
                text:b_Knife03_Down_Cpst.text
                // //@disabel-check M16
                // onEditingFinished: {
                //     b_Knife03_Down_Cpst.text = b_Knife03_Down_Cpst_Input.text
                //     b_Knife03_Down_Cpst_Input.visible = false
                //     b_Knife03_Down_Cpst.visible = true
                // }
                onAccepted: {
                    b_Knife03_Down_Cpst_Input.visible = false
                    b_Knife03_Down_Cpst.visible = true
                    Cpp_Connect.write_modbus_tcp_TwoHoldingResgisters("3328",b_Knife03_Down_Cpst_Input.text)
                }
            }

            MouseArea{
                anchors.fill: parent
                acceptedButtons: Qt.LeftButton
                //@disabel-check M16
                propagateComposedEvents: true

                onClicked: {
                    mouse.accepted = false
                    b_Knife03_Down_Cpst.visible = false
                    b_Knife03_Down_Cpst_Input.visible = true
                    b_Knife03_Down_Cpst_Input.forceActiveFocus()
                }
            }
        }



    }
}
